--------------------------------------------------------------------------------
 #  Migration and knowledge diffusion:
 #  The effect of returning refugees on export
 #  performance in the former Yugoslavia
 #
 #  Dany Bahar, Andreas Hauptmann, Cem Özgüzel and Hillel Rapoport
 #  12/16/2021
--------------------------------------------------------------------------------

This folder contains the programs and code necessary to replicate the results 
in the paper. The code was created using Stata 15.1. 

Please note the data statement at the end of this document.


--------------------------------------------------------------------------------
 # LIST OF DO-FILES
--------------------------------------------------------------------------------

AllTables.do
CDKProductivity.do
DatasetConstruction.do
DiffInDiff.do
DiffInDiffAppendix.do
DiffInDiffCDK.do
DiffInDiffUNIDOandBosnia.do
InitializeGlobals.do
InitializeVars.do
NAICS-SIC_to_SITC.do
OccupationsTable.do
RegionsTable.do
SyntheticControls.do
TradeDatasetConstruction.do


--------------------------------------------------------------------------------
 # LIST OF TABLES AND FIGURES WITH MARKER TO SORUCE CODE
--------------------------------------------------------------------------------

main paper

figure 1a    YugoslaviaPopulation_BW.eps                 diffindiff.do
figure 1b    YUGFlowsStock_BW.pdf                        diffindiff.do
figure 2     FYUGEntryExitLaborForce_BW.eps              diffindiff.do
figure 3     Migrants19902000_1d_BW.eps                  diffindiff.do
figure 4     TreatExports_yby_BW.eps                     diffindiff.do
figure 5     ShareArrivalReturneesByProduct_1D_BW.eps    diffindiff.do
figure 6     DIDyby_both_BW.eps                          diffindiff.do
figure 7     DiffSynthReal_BW.eps                        syntheticcontrols.do

table  1     SumStatsDIDYUG.tex                          diffindiff.do
table  2     DIDMainCumExp_withFirstStage.tex            diffindiff.do
table  3     DIDMainCumExp_LHSCDK.tex                    diffindiffcdk.do
table  4     DIDUNIDOandBosnia.tex                       diffindiffunidoandbosnia.do
table  5     DIDOccupations.tex                          occupationstable.do

online appendices

table  b1    OccupationsList.tex                         diffindiff.do
figure b1    GermanyAsylumSeekers.pdf
figure b2    FirstStageIVDiff_1D.eps                     diffindiff.do
figure c1    TradeZeros.eps
figure c2    DIDExclSITC.eps                             diffindiffappendix.do
figure c3    DIDEarlyLate.eps                            diffindiffappendix.do
table  c1    DIDMainCumExp_OtherTreat.tex                diffindiffappendix.do
table  c2    DIDMainCumExp_IVxBYBW.tex                   diffindiffappendix.do
table  c3    DIDMainCumExp_noSVNMKD.tex                  diffindiffappendix.do
table  c4    DIDSynthControls.tex                        syntheticcontrols.do
table  c5    DIDMainCumExpProductTypeLaborInt.tex        diffindiffappendix.do
table  c6    DIDPerCapitaRHS.tex                         diffindiffappendix.do
table  c7    APP-DIDUNIDOpw.tex                          diffindiffunidoandbosnia.do
table  c8    APP-DIDBosnianDatapw.tex                    diffindiffunidoandbosnia.do
table  c9    DIDMainConvergenceCtrl.tex                  diffindiffappendix.do
table c10    DIDMainCumExpFDI.tex                        diffindiffappendix.do
table c11    FDIOnly.tex                                 diffindiffappendix.do
table c12    DIDUNIDO_Capital.tex                        diffindiffunidoandbosnia.do
table c13    DIDMainCumExpDEU.tex                        diffindiffappendix.do
table c14    DIDToRegions.tex                            regionstable.do
table c15    DIDMainCumExpIOImports.tex                  diffindiffappendix.do
table c16    DIDMainCumExpProductDiff.tex                diffindiffappendix.do
table c17    DIDMainCumExp_Occupations.tex               occupationstable.do
table c18    AllSampleDID.tex                            alltables.do


--------------------------------------------------------------------------------
 # LIST OF VARIABLES IN OUR MAIN DATASET
--------------------------------------------------------------------------------

              storage   display    value
variable name   type    format     label      variable label
--------------------------------------------------------------------------------
countryid       float   %8.0g                 Country ID
productid       float   %8.0g                 Product / Sector ID
year            double  %8.0g                 Year
rca             float   %9.0g                 Revealed Comparative Advantage (RCA)
exp             double  %10.0g                Exports (nominal $ value)
expshare        float   %9.0g                 Share of Exports 
rca_xdeu        float   %9.0g                 RCA, excluding exports to Germany
exp_xdeu        double  %10.0g                Exports (nominal $ value), excluding exports to Germany
expshare_xdeu   float   %9.0g                 Share of Exports, excluding exports to Germany
imp             double  %10.0g                Imports (nominal $ value)
impdeu          double  %10.0g                Imports from Germany (nominal $ value)
dens            float   %9.0g                 Density (from Hidalgo et al. 2017)
exptoeasiapac   double  %10.0g                Exports (nominal $ value) to East Asia and Pacific
exptoeeurope    double  %10.0g                Exports (nominal $ value) to Eastern Europe
exptolac        double  %10.0g                Exports (nominal $ value) to Latin America and the Caribbean
exptomeastnafr  double  %10.0g                Exports (nominal $ value) to Middle East and North Africa
exptonamerica   double  %10.0g                Exports (nominal $ value) to North America
exptosasia      double  %10.0g                Exports (nominal $ value) to South Asia
exptossa        double  %10.0g                Exports (nominal $ value) to Sub Saharan Africa
exptoweurope    double  %10.0g                Exports (nominal $ value) to Western Europe
iso3            str4    %9s                   Country ISO3
product         double  %8.0g                 Product SITC 4-digit code
FSU             float   %9.0g                 Former Soviet Union Dummy
countryproductid float   %9.0g                group(countryid productid)
countryyearid   float   %9.0g                 group(countryid year)
productyearid   float   %9.0g                 group(productid year)
rcadeu          float   %9.0g                 RCA to Germany
expdeu          double  %10.0g                Exports (nominal $ value) to Germany
expSRB_xdeu     double  %9.0g                 Exports from Serbia (nominal $ value), excluding to Germany
expnoSRB_xdeu   float   %9.0g                 Exports from Former Yugoslavia without Serbia (nominal $ value), excluding to Germany
expHRV_xdeu     double  %9.0g                 Exports from Croatia (nominal $ value), excluding to Germany
expnoHRV_xdeu   float   %9.0g                 Exports from Former Yugoslavia without Croatia (nominal $ value), excluding to Germany
expSVN_xdeu     double  %9.0g                 Exports from Slovenia (nominal $ value), excluding to Germany
expnoSVN_xdeu   float   %9.0g                 Exports from Former Yugoslavia without Slovenia (nominal $ value), excluding to Germany
expMKD_xdeu     double  %9.0g                 Exports from Northern Republic of Macedonia (nominal $ value), excluding to Germany
expnoMKD_xdeu   float   %9.0g                 Exports from Former Yugoslavia without Northern Republic of Macedonia (nominal $ value), excluding to Germany
expBIH_xdeu     double  %9.0g                 Exports from Bosnia and Herzegovina (nominal $ value), excluding to Germany
expnoBIH_xdeu   float   %9.0g                 Exports from Former Yugoslavia without Bosnia and Herzegovina Republic of Macedonia (nominal $ value), excluding to Germany
xpest_asinh     double  %10.0g                Costinot, Donaldson and Komujer (2012) measure (asinh)
xpest           float   %9.0g                 Costinot, Donaldson and Komujer (2012) measure
kp              float   %9.0g                 Capital Intensity
c_kp            float   %9.0g                 Capital Intensity (standardized)
q_kp            byte    %8.0g                 4 quantiles of kp
HCI             float   %9.0g                 Human Capital Intensity (HCI)
c_HCI           float   %9.0g                 HCI (standardized)
q_HCI           byte    %8.0g                 4 quantiles of HCI
ONETki          float   %9.0g                 Knowledge Intensity (ONET)
c_ONETki        float   %9.0g                 Knowledge Intensity (ONET) (standardized)
rd_orbis        float   %9.0g                 R&D Intensity (Orbis)
rd_compustat    float   %9.0g                 R&D Intensity (Compustat)
c_rd_orbis      float   %9.0g                 R&D Intensity (Orbis) (standardized)
c_rd_compustat  float   %9.0g                 R&D Intensity (Compustat) (standardized)
upstreamness    double  %9.0g                 Upstreamness measure (Antras et al. 2012)
c_upstreamness  float   %9.0g                 Upstreamness (standardized) (Antras et al. 2012)
h_con           str1    %9s                   Heterogenous good (conservative measure), Rauch
h_lib           str1    %9s                   Heterogenous good (liberal measure), Rauch
mig_rm_came_sam_9195 double  %10.0g           YUG workers entering data between 1991 and 1995 (anon. val =1 to 19)
mig_rm_left_sam_2000 double  %10.0g           Workers of 91-95, left by 2000 (anon. val =1 to 19)
mig_rm_left_sam_2005 double  %10.0g           Workers of 91-95, left by 2005 (anon. val =1 to 19)
mig_rm_left_sam_2010 double  %10.0g           Workers of 91-95, left by 2010 (anon. val =1 to 19)
mig_rm_ls00_psf1_amn1_0 double  %10.0g        0 = above mean (of occs.) , psf1=all worker (anon. val =1 to 19)
mig_rm_ls00_psf1_amn1_1 double  %10.0g        1 = above mean (of occs.) , psf1=all worker (anon. val =1 to 19)
mig_rm_ls00_psf1_amn1_mis double  %10.0g      . = above mean (of occs.) , psf1=all worker (anon. val =1 to 19)
mig_rm_ls00_psf1_amd1_0 double  %10.0g        0 = above median (of occs.) , psf1=all worker (anon. val =1 to 19)
mig_rm_ls00_psf1_amd1_1 double  %10.0g        1 = above median (of occs.) , psf1=all worker (anon. val =1 to 19)
mig_rm_ls00_psf1_amd1_mis double  %10.0g      . = above median (of occs.) , psf1=all worker (anon. val =1 to 19)
mig_rm_ls00_psf1_amn2_0 double  %10.0g        0 = above mean (of workers) , psf1=all worker (anon. val =1 to 19)
mig_rm_ls00_psf1_amn2_1 double  %10.0g        1 = above mean (of workers) , psf1=all worker (anon. val =1 to 19)
mig_rm_ls00_psf1_amn2_mis double  %10.0g      . = above mean (of workers) , psf1=all worker (anon. val =1 to 19)
mig_rm_ls00_psf1_amd2_0 double  %10.0g        0 = above median (of workers) , psf1=all worker (anon. val =1 to 19)
mig_rm_ls00_psf1_amd2_1 double  %10.0g        1 = above median (of workers) , psf1=all worker (anon. val =1 to 19)
mig_rm_ls00_psf1_amd2_mis double  %10.0g      . = above median (of workers) , psf1=all worker (anon. val =1 to 19)
mig_rm_ls00_psf2_amn1_0 double  %10.0g        0 = above mean (of occs.) , psf2=beh worker (anon. val =1 to 19)
mig_rm_ls00_psf2_amn1_1 double  %10.0g        1 = above mean (of occs.) , psf2=beh worker (anon. val =1 to 19)
mig_rm_ls00_psf2_amn1_mis double  %10.0g      . = above mean (of occs.) , psf2=beh worker (anon. val =1 to 19)
mig_rm_ls00_psf2_amd1_0 double  %10.0g        0 = above median (of occs.) , psf2=beh worker (anon. val =1 to 19)
mig_rm_ls00_psf2_amd1_1 double  %10.0g        1 = above median (of occs.) , psf2=beh worker (anon. val =1 to 19)
mig_rm_ls00_psf2_amd1_mis double  %10.0g      . = above median (of occs.) , psf2=beh worker (anon. val =1 to 19)
mig_rm_ls00_psf2_amn2_0 double  %10.0g        0 = above mean (of workers) , psf2=beh worker (anon. val =1 to 19)
mig_rm_ls00_psf2_amn2_1 double  %10.0g        1 = above mean (of workers) , psf2=beh worker (anon. val =1 to 19)
mig_rm_ls00_psf2_amn2_mis double  %10.0g      . = above mean (of workers) , psf2=beh worker (anon. val =1 to 19)
mig_rm_ls00_psf2_amd2_0 double  %10.0g        0 = above median (of workers) , psf2=beh worker (anon. val =1 to 19)
mig_rm_ls00_psf2_amd2_1 double  %10.0g        1 = above median (of workers) , psf2=beh worker (anon. val =1 to 19)
mig_rm_ls00_psf2_amd2_mis double  %10.0g      . = above median (of workers) , psf2=beh worker (anon. val =1 to 19)
mig_rm_ls00_psf1_info_0 double  %10.0g        0 = share reported 'often' : to collect, investigate and document data, psf1=all
mig_rm_ls00_psf1_info_1 double  %10.0g        1 = share reported 'often' : to collect, investigate and document data, psf1=all
mig_rm_ls00_psf1_info_mis double  %10.0g      . = share reported 'often' : to collect, investigate and document data, psf1=all
mig_rm_ls00_psf1_prob_0 double  %10.0g        0 = share reported 'often' : to have to react to unexpected problems and resolve
mig_rm_ls00_psf1_prob_1 double  %10.0g        1 = share reported 'often' : to have to react to unexpected problems and resolve
mig_rm_ls00_psf1_prob_mis double  %10.0g      . = share reported 'often' : to have to react to unexpected problems and resolve
mig_rm_ls00_psf1_diff_0 double  %10.0g        0 = share reported 'often' : to have to make difficult decisions independently a
mig_rm_ls00_psf1_diff_1 double  %10.0g        1 = share reported 'often' : to have to make difficult decisions independently a
mig_rm_ls00_psf1_diff_mis double  %10.0g      . = share reported 'often' : to have to make difficult decisions independently a
mig_rm_ls00_psf1_know_0 double  %10.0g        0 = share reported 'often' : to have to recognize and close own knowledge gap, p
mig_rm_ls00_psf1_know_1 double  %10.0g        1 = share reported 'often' : to have to recognize and close own knowledge gap, p
mig_rm_ls00_psf1_know_mis double  %10.0g      . = share reported 'often' : to have to recognize and close own knowledge gap, p
mig_rm_ls00_psf1_task_0 double  %10.0g        0 = share reported 'often' : to be faced with new tasks which you first have to
mig_rm_ls00_psf1_task_1 double  %10.0g        1 = share reported 'often' : to be faced with new tasks which you first have to
mig_rm_ls00_psf1_task_mis double  %10.0g      . = share reported 'often' : to be faced with new tasks which you first have to
mig_rm_ls00_psf1_idea_0 double  %10.0g        0 = share reported 'often' : to have to improve processes or try out something n
mig_rm_ls00_psf1_idea_1 double  %10.0g        1 = share reported 'often' : to have to improve processes or try out something n
mig_rm_ls00_psf1_idea_mis double  %10.0g      . = share reported 'often' : to have to improve processes or try out something n
mig_rm_ls00_psf1_mtsk_0 double  %10.0g        0 = share reported 'often' : to ave to keep an eye on many different processes a
mig_rm_ls00_psf1_mtsk_1 double  %10.0g        1 = share reported 'often' : to ave to keep an eye on many different processes a
mig_rm_ls00_psf1_mtsk_mis double  %10.0g      . = share reported 'often' : to ave to keep an eye on many different processes a
mig_rm_ls00_psf2_info_0 double  %10.0g        0 = share reported 'often' : to collect, investigate and document data, psf2=beh
mig_rm_ls00_psf2_info_1 double  %10.0g        1 = share reported 'often' : to collect, investigate and document data, psf2=beh
mig_rm_ls00_psf2_info_mis double  %10.0g      . = share reported 'often' : to collect, investigate and document data, psf2=beh
mig_rm_ls00_psf2_prob_0 double  %10.0g        0 = share reported 'often' : to have to react to unexpected problems and resolve
mig_rm_ls00_psf2_prob_1 double  %10.0g        1 = share reported 'often' : to have to react to unexpected problems and resolve
mig_rm_ls00_psf2_prob_mis double  %10.0g      . = share reported 'often' : to have to react to unexpected problems and resolve
mig_rm_ls00_psf2_diff_0 double  %10.0g        0 = share reported 'often' : to have to make difficult decisions independently a
mig_rm_ls00_psf2_diff_1 double  %10.0g        1 = share reported 'often' : to have to make difficult decisions independently a
mig_rm_ls00_psf2_diff_mis double  %10.0g      . = share reported 'often' : to have to make difficult decisions independently a
mig_rm_ls00_psf2_know_0 double  %10.0g        0 = share reported 'often' : to have to recognize and close own knowledge gap, p
mig_rm_ls00_psf2_know_1 double  %10.0g        1 = share reported 'often' : to have to recognize and close own knowledge gap, p
mig_rm_ls00_psf2_know_mis double  %10.0g      . = share reported 'often' : to have to recognize and close own knowledge gap, p
mig_rm_ls00_psf2_task_0 double  %10.0g        0 = share reported 'often' : to be faced with new tasks which you first have to
mig_rm_ls00_psf2_task_1 double  %10.0g        1 = share reported 'often' : to be faced with new tasks which you first have to
mig_rm_ls00_psf2_task_mis double  %10.0g      . = share reported 'often' : to be faced with new tasks which you first have to
mig_rm_ls00_psf2_idea_0 double  %10.0g        0 = share reported 'often' : to have to improve processes or try out something n
mig_rm_ls00_psf2_idea_1 double  %10.0g        1 = share reported 'often' : to have to improve processes or try out something n
mig_rm_ls00_psf2_idea_mis double  %10.0g      . = share reported 'often' : to have to improve processes or try out something n
mig_rm_ls00_psf2_mtsk_0 double  %10.0g        0 = share reported 'often' : to ave to keep an eye on many different processes a
mig_rm_ls00_psf2_mtsk_1 double  %10.0g        1 = share reported 'often' : to ave to keep an eye on many different processes a
mig_rm_ls00_psf2_mtsk_mis double  %10.0g      . = share reported 'often' : to ave to keep an eye on many different processes a
mig_rm_ls00_edu_low double  %10.0g            Education low (of workers beg.91-95 and end.99) (anon. val =1 to 19)
mig_rm_ls00_edu_hig double  %10.0g            Education medium and high (of workers beg.91-95 and end.99) (anon. val =1 to 19)
mig_rm_ls00_edu_mis double  %10.0g            Education missing (of workers beg.91-95 and end.99) (anon. val =1 to 19)
mig_rm_ls00_psf0_amd_0 double  %10.0g         Occ. below median problem solving content (of workers beg.91-95 and end.99) (ano
mig_rm_ls00_psf0_amd_1 double  %10.0g         Occ. above median problem solving content (of workers beg.91-95 and end.99) (ano
mig_rm_ls00_psf0_amd_mis double  %10.0g       Occ. missing problem solving content (of workers beg.91-95 and end.99) (anon. va
mig_rm_ls00_task_analytical double  %10.0g    Occ. analytical and cognitive tasks (of workers beg.91-95 and end.99) (anon. val
mig_rm_ls00_task_manual double  %10.0g        Occ. manual tasks (of workers beg.91-95 and end.99) (anon. val =1 to 19)
mig_rm_ls00_task_mis double  %10.0g           Occ. task missing (of workers beg.91-95 and end.99) (anon. val =1 to 19)
mig_rm_ls00_bf2_lowskill double  %10.0g       Occ. low-skilled job (of workers beg.91-95 and end.99) (anon. val =1 to 19)
mig_rm_ls00_bf2_higskill double  %10.0g       Occ. medium- and high-skilled job (of workers beg.91-95 and end.99) (anon. val =
mig_rm_ls00_bf2_mis double  %10.0g            Occ. missing (of workers beg.91-95 and end.99) (anon. val =1 to 19)
mig_rm_ls00_svam_0 double  %10.0g             Occ. supervisor = 0 , below average of bibb respondents (anon. val =1 to 19)
mig_rm_ls00_svam_1 double  %10.0g             Occ. supervisor = 1 , above average of bibb respondents (anon. val =1 to 19)
mig_rm_ls00_svam_mis double  %10.0g           Occ. supervisor = .  (anon. val =1 to 19)
mig_rm_ls00_sv50_0 double  %10.0g             Occ. supervisor = 0 , below 50 percent of bibb respondents (anon. val =1 to 19)
mig_rm_ls00_sv50_1 double  %10.0g             Occ. supervisor = 1 , above 50 percent of bibb respondents (anon. val =1 to 19)
mig_rm_ls00_sv50_mis double  %10.0g           Occ. supervisor = .  (anon. val =1 to 19)
mig_rm_ls00_svct_0 double  %10.0g             Occ. supervisor = 0 , continous share of bibb respondents (anon. val =1 to 19)
mig_rm_ls00_svct_1 double  %10.0g             Occ. supervisor = 1 , continous share of bibb respondents (anon. val =1 to 19)
mig_rm_ls00_svct_mis double  %10.0g           Occ. supervisor = .  (anon. val =1 to 19)
mig_rm_ls00_wgr_fila_amd_0 double  %10.0g     Wage growth, first to last wage, above median = 0 (anon. val =1 to 19)
mig_rm_ls00_wgr_fila_amd_1 double  %10.0g     Wage growth, first to last wage, above median = 1 (anon. val =1 to 19)
mig_rm_ls00_wgr_fila_amd_mis double  %10.0g   Wage growth, first to last wage, above median = . (anon. val =1 to 19)
mig_rm_ls00_wgr_fila_q1 double  %10.0g        Wage growth, first to last wage, quartile = 1 (anon. val =1 to 19)
mig_rm_ls00_wgr_fila_q2 double  %10.0g        Wage growth, first to last wage, quartile = 2 (anon. val =1 to 19)
mig_rm_ls00_wgr_fila_q3 double  %10.0g        Wage growth, first to last wage, quartile = 3 (anon. val =1 to 19)
mig_rm_ls00_wgr_fila_q4 double  %10.0g        Wage growth, first to last wage, quartile = 4 (anon. val =1 to 19)
mig_rm_ls00_wgr_fila_qmis double  %10.0g      Wage growth, first to last wage, quartile = . (anon. val =1 to 19)
mig_rm_ls00_wgr_cagr_amd_0 double  %10.0g     Wage growth, CAGR, above median = 0 (anon. val =1 to 19)
mig_rm_ls00_wgr_cagr_amd_1 double  %10.0g     Wage growth, CAGR, above median = 1 (anon. val =1 to 19)
mig_rm_ls00_wgr_cagr_amd_mis double  %10.0g   Wage growth, CAGR, above median = . (anon. val =1 to 19)
mig_rm_ls00_wgr_cagr_q1 double  %10.0g        Wage growth, CAGR, quartile = 1 (anon. val =1 to 19)
mig_rm_ls00_wgr_cagr_q2 double  %10.0g        Wage growth, CAGR, quartile = 2 (anon. val =1 to 19)
mig_rm_ls00_wgr_cagr_q3 double  %10.0g        Wage growth, CAGR, quartile = 3 (anon. val =1 to 19)
mig_rm_ls00_wgr_cagr_q4 double  %10.0g        Wage growth, CAGR, quartile = 4 (anon. val =1 to 19)
mig_rm_ls00_wgr_cagr_qmis double  %10.0g      Wage growth, CAGR, quartile = . (anon. val =1 to 19)
mig_rm_ls00_exec_0 double  %10.0g             Exec., worked once as executive = 0 (anon. val =1 to 19)
mig_rm_ls00_exec_1 double  %10.0g             Exec., worked once as executive = 1 (anon. val =1 to 19)
mig_rm_ls00_exec_mis double  %10.0g           Exec., worked once as executive = . (anon. val =1 to 19)
mig_rm_ls00_wpos1_p75_0 double  %10.0g        0 mig (anon. val =1 to 19)
mig_rm_ls00_wpos1_p75_1 double  %10.0g        1 mig (anon. val =1 to 19)
mig_rm_ls00_wpos1_p75_mis double  %10.0g      . mig (anon. val =1 to 19)
mig_rm_ls00_wpos1_p50_0 double  %10.0g        0 mig (anon. val =1 to 19)
mig_rm_ls00_wpos1_p50_1 double  %10.0g        1 mig (anon. val =1 to 19)
mig_rm_ls00_wpos1_p50_mis double  %10.0g      . mig (anon. val =1 to 19)
mig_rm_ls00_wpos2_p75_0 double  %10.0g        0 mig (anon. val =1 to 19)
mig_rm_ls00_wpos2_p75_1 double  %10.0g        1 mig (anon. val =1 to 19)
mig_rm_ls00_wpos2_p75_mis double  %10.0g      . mig (anon. val =1 to 19)
mig_rm_ls00_wpos2_p50_0 double  %10.0g        0 mig (anon. val =1 to 19)
mig_rm_ls00_wpos2_p50_1 double  %10.0g        1 mig (anon. val =1 to 19)
mig_rm_ls00_wpos2_p50_mis double  %10.0g      . mig (anon. val =1 to 19)
mig_rm_ls00_wpos1_q3_0 double  %10.0g         0 mig (anon. val =1 to 19)
mig_rm_ls00_wpos1_q3_1 double  %10.0g         1 mig (anon. val =1 to 19)
mig_rm_ls00_wpos1_q3_mis double  %10.0g       . mig (anon. val =1 to 19)
mig_rm_ls00_wpos2_q3_0 double  %10.0g         0 mig (anon. val =1 to 19)
mig_rm_ls00_wpos2_q3_1 double  %10.0g         1 mig (anon. val =1 to 19)
mig_rm_ls00_wpos2_q3_mis double  %10.0g       . mig (anon. val =1 to 19)
mig_rm_ls00_wpos1_lw_p75_0 double  %10.0g     0 mig (anon. val =1 to 19)
mig_rm_ls00_wpos1_lw_p75_1 double  %10.0g     1 mig (anon. val =1 to 19)
mig_rm_ls00_wpos1_lw_p75_mis double  %10.0g   . mig (anon. val =1 to 19)
mig_rm_ls00_wpos1_lw_p50_0 double  %10.0g     0 mig (anon. val =1 to 19)
mig_rm_ls00_wpos1_lw_p50_1 double  %10.0g     1 mig (anon. val =1 to 19)
mig_rm_ls00_wpos1_lw_p50_mis double  %10.0g   . mig (anon. val =1 to 19)
mig_rm_ls00_wpos2_lw_p75_0 double  %10.0g     0 mig (anon. val =1 to 19)
mig_rm_ls00_wpos2_lw_p75_1 double  %10.0g     1 mig (anon. val =1 to 19)
mig_rm_ls00_wpos2_lw_p75_mis double  %10.0g   . mig (anon. val =1 to 19)
mig_rm_ls00_wpos2_lw_p50_0 double  %10.0g     0 mig (anon. val =1 to 19)
mig_rm_ls00_wpos2_lw_p50_1 double  %10.0g     1 mig (anon. val =1 to 19)
mig_rm_ls00_wpos2_lw_p50_mis double  %10.0g   . mig (anon. val =1 to 19)
mig_rm_ls00_wage_mn double  %10.0g            (mean) rmwage (anon. val =1 to 19)
mig_rm_ls00_wage_md double  %10.0g            (p 50) rmwage (anon. val =1 to 19)
mig_rm_ls00_wage_sm double  %10.0g            (sum) rmwage (anon. val =1 to 19)
mig_rm_ls00_wage_nr double  %10.0g            (count) rmwage (anon. val =1 to 19)
mig_rm_ls00_wage_mn_exec_0 double  %10.0g     0 mig_wage_mn_exec_ (anon. val =1 to 19)
mig_rm_ls00_wage_md_exec_0 double  %10.0g     0 mig_wage_md_exec_ (anon. val =1 to 19)
mig_rm_ls00_wage_mn_exec_1 double  %10.0g     1 mig_wage_mn_exec_ (anon. val =1 to 19)
mig_rm_ls00_wage_md_exec_1 double  %10.0g     1 mig_wage_md_exec_ (anon. val =1 to 19)
mig_rm_ls00_edu0_exec0 double  %10.0g         0 mig_edu0_exec (anon. val =1 to 19)
mig_rm_ls00_edu1_exec0 double  %10.0g         0 mig_edu1_exec (anon. val =1 to 19)
mig_rm_ls00_edu999_exec0 double  %10.0g       0 mig_edu999_exec (anon. val =1 to 19)
mig_rm_ls00_edu0_exec1 double  %10.0g         1 mig_edu0_exec (anon. val =1 to 19)
mig_rm_ls00_edu1_exec1 double  %10.0g         1 mig_edu1_exec (anon. val =1 to 19)
mig_rm_ls00_edu999_exec1 double  %10.0g       1 mig_edu999_exec (anon. val =1 to 19)
mig_rm_ls00_edu0_exec999 double  %10.0g       . mig_edu0_exec (anon. val =1 to 19)
mig_rm_ls00_edu1_exec999 double  %10.0g       . mig_edu1_exec (anon. val =1 to 19)
mig_rm_ls00_edu999_exec999 double  %10.0g     . mig_edu999_exec (anon. val =1 to 19)
mig_rm_ls00_fwage_t25_0 double  %10.0g        (sum) mig_te_med_t25_0 (anon. val =1 to 19)
mig_rm_ls00_fwage_t25_1 double  %10.0g        (sum) mig_te_med_t25_1 (anon. val =1 to 19)
mig_rm_ls00_fwage_t25_mis double  %10.0g      (sum) mig_te_med_t25_mis (anon. val =1 to 19)
mig_rm_ls00_r1_1995_1998 double  %10.0g       return by subperiod (r1) 1995-1998 (anon. val =1 to 19)
mig_rm_ls00_r1_other double  %10.0g           return by subperiod (r1) 1991-1994, 1999 (anon. val =1 to 19)
mig_rm_ls00_r1W_1995_1998 double  %10.0g      return by subperiod (r1) 1995-1998, weighted (anon. val =1 to 19)
mig_rm_ls00_r1W_other double  %10.0g          return by subperiod (r1) 1991-1994, 1999, weighted (anon. val =1 to 19)
mig_rm_ls00_r2_1991_1994 double  %10.0g       return by subperiod (r2) 1991-1994 (anon. val =1 to 19)
mig_rm_ls00_r2_1995_1996 double  %10.0g       return by subperiod (r2) 1995-1996 (anon. val =1 to 19)
mig_rm_ls00_r2_1997_1998 double  %10.0g       return by subperiod (r2) 1997-1998 (anon. val =1 to 19)
mig_rm_ls00_r2_1999 double  %10.0g            return by subperiod (r2) 1999 (anon. val =1 to 19)
mig_rm_ls00_r2W_1991_1994 double  %10.0g      return by subperiod (r2) 1991-1994, weighted (anon. val =1 to 19)
mig_rm_ls00_r2W_1995_1996 double  %10.0g      return by subperiod (r2) 1995-1996, weighted (anon. val =1 to 19)
mig_rm_ls00_r2W_1997_1998 double  %10.0g      return by subperiod (r2) 1997-1998, weighted (anon. val =1 to 19)
mig_rm_ls00_r2W_1999 double  %10.0g           return by subperiod (r2) 1999, weighted (anon. val =1 to 19)
mig_rm_ls00_r3_1991_1996 double  %10.0g       return by subperiod (r3) 1991-1996 (anon. val =1 to 19)
mig_rm_ls00_r3_1997_1999 double  %10.0g       return by subperiod (r3) 1997-1999 (anon. val =1 to 19)
mig_rm_ls00_r3W_1991_1996 double  %10.0g      return by subperiod (r3) 1991-1996, weighted (anon. val =1 to 19)
mig_rm_ls00_r3W_1997_1999 double  %10.0g      return by subperiod (r3) 1997-1999, weighted (anon. val =1 to 19)
mig_rm_ls00_durmain_n double  %10.0g          left by 00, weighted by nr of days employed, in mainjob, normalized (anon. val =
mig_rm_ls00_durD1_n double  %10.0g            left by 00, weighted by nr of days employed, all industries, normalized (anon. v
mig_rm_ls00_durN1_n double  %10.0g            left by 00, weighted by nr of obs employed, all industries, normalized (anon. va
rca_xdeu1985    float   %9.0g         1985 RCA excl exports to Germany
exp_xdeu1985    double  %10.0g        1985 Exports excl exports to Germany
rcadeu1985      float   %9.0g         1985 RCA exports to Germany
expdeu1985      double  %10.0g        1985 Exports to Germany
rca_xdeu1990    float   %9.0g         1990 RCA excl exports to Germany
exp_xdeu1990    double  %10.0g        1990 Exports excl exports to Germany
rcadeu1990      float   %9.0g         1990 Exports to Germany exports to Germany
expdeu1990      double  %10.0g        1990 Exports to Germany
rca_xdeu1995    float   %9.0g         1995 RCA excl exports to Germany
exp_xdeu1995    double  %10.0g        1995 Exports excl exports to Germany
rcadeu1995      float   %9.0g         1995 RCA exports to Germany
expdeu1995      double  %10.0g        1995 Exports to Germany
rca_xdeu2000    float   %9.0g         2000 RCA excl exports to Germany
exp_xdeu2000    double  %10.0g        2000 Exports excl exports to Germany
rcadeu2000      float   %9.0g         2000 RCA exports to Germany
expdeu2000      double  %10.0g        2000 Exports to Germany
rca_xdeu2005    float   %9.0g         2005 RCA excl exports to Germany
exp_xdeu2005    double  %10.0g        2005 Exports excl exports to Germany
rcadeu2005      float   %9.0g         2005 RCA exports to Germany
expdeu2005      double  %10.0g        2005 Exports to Germany
rca_xdeu2010    float   %9.0g         2010 RCA excl exports to Germany
exp_xdeu2010    double  %10.0g        2010 Exports excl exports to Germany
rcadeu2010      float   %9.0g         2010 RCA exports to Germany
expdeu2010      double  %10.0g        2010 Exports to Germany
countryproduct  float   %9.0g         group(product iso3)
migest_asyl_FYUG_9195 float   %9.0g   Asylum Requests FYUG 1991-1995              
migest_asyl_FOR_9195 float   %9.0g    Asylum Requests Foreigners 1991-1995              
migest_asyl_FORnotFYUG_9195 float   %9.0g  Asylum Requests Foreigners excl. FYUG 1991-1995                             
product_2d      float   %9.0g       2 digit SITC product   
fdi             double  %9.0g       FDI to FYUG in Million Euros
fdinoSRB        float   %9.0g       FDI to FYUG excluding Serbia
fdinoHRV        float   %9.0g       FDI to FYUG excluding Croatia
fdinoSVN        float   %9.0g       FDI to FYUG excluding Slovenia   
fdinoMKD        float   %9.0g       FDI to FYUG excluding Northen Republic of Macedonia   
fdinoBIH        float   %9.0g       FDI to FYUG excluding Bosnia and Herzegovina
cgdppc1990      float   %9.0g       1990 Real GDP per capita (PWI)	
rgdpnapc1990    float   %9.0g       1990 Real GDP per capita (PWI)
pop1990         float   %9.0g       1990 Population 
cgdppc2000      float   %9.0g       2000 Real GDP per capita (PWI)	
rgdpnapc2000    float   %9.0g       2000 Real GDP per capita (PWI)	
pop2000         float   %9.0g       2000 Population
pop             float   %9.0g       Population, mid-year (thousands)
easia_pac       byte    %8.0g       Country in East Asia and the Pacific (Yes = 1)          
eeurope         float   %9.0g       Country in Eastern Europe (Yes = 1)          
lac             byte    %8.0g       Country in Latin America and Caribbean (Yes=1)          
meast_nafr      byte    %8.0g       Country in Middle East and North Africa (Yes=1)
namerica        byte    %8.0g       Country in North America (Yes=1)          
sasia           byte    %8.0g       Country in South Asia (Yes=1)          
ssa             byte    %8.0g       Country in Sub-Saharan Africa (Yes=1)          
weurope         float   %9.0g       Country in Western Europe (Yes=1)          
rci             double  %9.0g       Revealed Physical Capital Intensity Index
rnri_land       double  %9.0g       Revealed Land Intensity Index
rhci            double  %9.0g       Revealed Human Capital Intensity Index
c_rhci          float   %9.0g       Revealed Human Capital Intensity Index (standardized)
c_rci           float   %9.0g       Revealed Physical Capital Intensity Index (standardized)
c_rnri_land     float   %9.0g       Revealed Land Intensity Index (standardized)
q_rhci          byte    %8.0g       Median Threshold of rhci
q_rci           byte    %8.0g       Median Threshold of rci
q_rnri          byte    %8.0g       Median Threshold of rnri
q25_rhci        float   %9.0g       25th Percentile Threshold of rhci
q75_rhci        float   %9.0g       75th Percentile Threshold of rhci
q25_rci         float   %9.0g       25th Percentile Threshold of rci
q75_rci         float   %9.0g       75th Percentile Threshold of rci
q25_rnri        float   %9.0g       25th Percentile Threshold of rnri
q75_rnri        float   %9.0g       75th Percentile Threshold of rnri
quartile_rhci   float   %9.0g       1=below 25th, 2=25th-75th, 3=above 75th
ioimpdeu        double  %9.0g       Imports of intermediate goods from Germany (Nominal $ value)
exppc           float   %9.0g       Exports per 1000 people
exppc_xdeu      float   %9.0g       Exports per 1000 people, excl. exports to Germany
rcapop          float   %9.0g       RCA population based          
rcapop_xdeu     float   %9.0g       RCA population based, excl. exports to Germany          
lnexp           float   %9.0g       log(exp)          
lnexpplus1      float   %9.0g       log(exp+1)          
asinhexp        float   %9.0g       asinh(exp)          
lnexppc         float   %9.0g       log(exp per cap)          
lnexppcplus1    float   %9.0g       log(exp per cap + 1)          
asinhexppc      float   %9.0g       asinh(exp per capita)          
lnfdi           float   %9.0g       log(FDI inflows)          
globalexp       float   %9.0g       Global Exports (nominal value)          
lnglobalexp     float   %9.0g       Global Exports (log)          
globalexpshare  float   %9.0g       Share of Global Exports          
totalexpdeu     float   %9.0g       Total Exports to Germany          
germanexpshare  float   %9.0g       Share of Exports in Germany          
germanexpshare1990 float   %9.0g    Share of Exports in Germany 1990             
germanexp1990   float   %9.0g       German exports in 1990          


--------------------------------------------------------------------------------
 # DATA STATEMENT
--------------------------------------------------------------------------------

For our analyses we use data based on administrative records of the Institute 
for Employment Research (IAB). The data are social data with administrative 
origin which are processed and kept by IAB according to Social Code III. There 
are certain legal restrictions due to the protection of data privacy. The data 
contain sensitive information and therefore are subject to the confidentiality 
regulations of the German Social Code (Book I, Section 35, Paragraph 1). 

Accordingly the variables sourced from IAB has been changed to missing.

Our data, programs, and results have been archived by the IAB according to the 
standards of good scientific practice. The data are held by the Institute for 
Employment Research (IAB), Regensburger Str. 104, D-90478 Nürnberg, email: 
iab@iab.de, phone: +49 911 1790. If you wish to access this data for replication 
purposes please contact the author. Note that due to the confidentiality of the 
data, access for replication purposes is restricted and only possible on-site at 
the IAB after application and approval. 



 

